<!DOCTYPE html><html><head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
	<title>资质认证</title>
	<link href="<?php echo TEMPLATE_SITE_URL;?>/css/common.css" type="text/css" rel="stylesheet">
	<link href="<?php echo TEMPLATE_SITE_URL;?>/css/renzheng.css" type="text/css" rel="stylesheet">
	    <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>   
	
</head>
<body>
<div id="contentbox">
    <div class="verifyMain">
        <div class="verifyBox userInfo">
            <div class="avatar">
                <img src="<?php echo $output['user']['avatar'];?>">
            </div>
            <div class="verifyInfo">
                <div class="userName"><?php echo $output['user']['nickname'];?></div>
                <?php if(!empty($output['company'])){?>
                    <?php if($output['company']['company_state']==1){?>
                	<p>审核中,请耐心等待</p>
                	<?php }elseif($output['company']['company_state']==2){?>
                	<p>已审核，支付消保金</p>
                	<?php }elseif($output['company']['company_state']==3){?>
                	<p>认证有效期：<?php echo date("Y年m月d日",$output['user']['company_valid']);?></p>
                	<?php }else{?>
                	<p>驳回认证,请重新填写</p>
                	
                	<?php }?>    
                <?php }else{?>
        	        <p>立即实名认证享受更多特权服务</p>
                <?php }?>
            </div>

            <?php if($output['company']['company_state']==3){?>
            <div class="verifyState">
            	<?php if($output['company']['company_type']==1){?>
            		<img src="<?php echo TEMPLATE_SITE_URL;?>/images/verifyFinished_business.png">
            		<p class="business"></p>
            	<?php }else{?>
            	    <img src="<?php echo TEMPLATE_SITE_URL;?>/images/verifyFinished_individual.png">
            	    <p class="individual"></p>
            	<?php }?>               
            </div>
            <?php }else{?>
            <div class="verifyState">
                <img src="<?php echo TEMPLATE_SITE_URL;?>/images/verifyNotFinished.png">
                <p class=""></p>
            </div>
            <?php }?>
        </div>
        
        <?php if(!empty($output['company'])&&($output['company']['company_state']=='0')){?>
            <div class="verifyBox"><p>驳回原因：<?php echo $output['company']['refusereason'];?></p></div>
        <?php }?>
            
        <?php if(empty($output['company']) || ($output['company']['company_state']=='0')){?>
        <div class="verifyBox apply">
                <div class="title">申请认证</div>
                <div class="applyOptionList">
                    <div class="applyItem">
                    <a href="index.php?act=renzheng&op=renzheng1&type=person">
                            <div class="applyIcon">
                                <img src="<?php echo TEMPLATE_SITE_URL;?>/images/verifyBtnIndividual.png">
                            </div>
                            <p>个人实名认证</p>
                            <div class="applyBtn">申请</div>
                     </a>
                 </div>
                 <div class="applyItem">
                 	<a href="index.php?act=renzheng&op=renzheng1&type=business">
	                    <div class="applyIcon">
	                    	<img src="<?php echo TEMPLATE_SITE_URL;?>/images/verifyBtnBusiness.png">
	                    </div>
	                    <p>企业实名认证</p>
	                    <div class="applyBtn">申请</div>
                    </a>
                 </div>
                </div>
        </div>
        <?php }?>
      
        <div class="verifyBox">
            <div class="title">认证特权</div>
            <div class="powerList">
                <div class="powerItem shake">摇一摇增加权重</div>
                <div class="powerItem black">黑名单数量增加到300</div>
                <div class="powerItem distill">提现次数增加到2次/天</div>
                <div class="powerItem sign">店铺当中增加认证标记</div>
                <div class="powerItem grade">增加点赞次数</div>
                <!--                  <div class="powerItem library">允许申请产品库</div>-->

            </div>
        </div>
    </div>
</div>

    <style type="text/css">
        * {
            outline: none;
            -webkit-tap-highlight-color: rgba(255, 0, 0, 0);
            vertical-align: baseline;
            font-style: normal;
        }

        body {
            margin: 0;
            padding: 0;
            font-size: 12px;
            font-family: Microsoft Yahei, Arial, Simsun, Helvetica, Segoe UI, sans-serif;
            color: #404040;
            background-color: #efeff4;
        }

        img {
            border: 0
        }

        ul, ol, li, dt, dl, dd {
            text-decoration: none;
            list-style: none;
            vertical-align: middle;
            margin: 0;
            padding: 0;
        }

        a,
        a:visited {
            color: #373737;
            text-decoration: none;
        }

        .blank {
            width: 100%;
            height: 20px;
        }
        .blank {
            width: 100%;
            height: 20px;
        }

        .userinfoMain {
            width: 100%;
            background-color: #FFF;
            display: table;
        }

        .userinfoMain .userinfoItem {
            width: 96%;
            margin-left: 4%;
            height: 50px;
            line-height: 50px;
        }

        .userinfoMain .userinfoItem span {
            float: left;
            display: block;
            width: 80px;
            height: 50px;
            line-height: 50px;
            text-align: left;
            font-size: 14px;
        }

        .userinfoMain .userinfoItem {
            border-bottom: 1px solid #dbdbdb;
        }

        .userinfoMain .userinfoItem:last-child {
            border-bottom: none;
        }

        .userinfoMain .userinfoItem input {
            width: 210px;
            height: 30px;
            border: none;
            font-size: 14px;
        }

        button {
            width: 94%;
            margin: 0 3%;
            border: none;
            background: #08BA06;
            border-radius: 4px;
            height: 40px;
            line-height: 40px;
            font-size: 18px;
            color: #FFF;
            margin-top: 40px;
            outline: none
        }
    </style>

<?php if($output['company']['company_state']==2){?>    
<div id="contentbox" style="margin-top:20px;">   
        <div class="userinfoMain" style="height:30px;">      	
            <div class="userinfoItem">
                                您好，请点击“支付”按钮，完成认证保证金的支付。
            </div>
        </div>
        <div class="userinfoMain">      	
            <div class="userinfoItem">
                <span>消保金：</span>
                <font color="red"><?php echo $output['cash']?>元</font>
            </div>
        </div>
        <button class="submit">支付</button>
</div>
<?php }?>

<?php if(($output['company']['company_state']==3)&&(($output['user']['company_valid']-30*24*3600)<time())){?> 
<div id="contentbox" style="margin-top:20px;">   
        <div class="userinfoMain" style="height:30px;">      	
            <div class="userinfoItem">您好，您的认证即将到期，请您认证续费,过期将重新审核</div>
        </div>
        <div class="userinfoMain">      	
            <div class="userinfoItem">
                <span>保证金：</span>
                <font color="red"><?php echo $output['cash']?>元</font>
            </div>
        </div>
        <button class="submit">支付</button>
</div>
<?php }?>
<script type="text/javascript">
$(function(){

	$(".submit").click(function(){		var xy_cash=<?php echo $output['cash']?>;		if(xy_cash==0){			$.ajax({			url:'index.php?act=my&op=free_updatesn',			type:'get',			dataType:'json',			success:function(data){								if(data.state==1){					alert('认证成功');					location.href='index.php?act=renzheng&op=renzheng';				}			}		});					}		else{			$.ajax({			url:'index.php?act=my&op=updatesn',			type:'get',			dataType:'json',			success:function(data){								if(data.state==1){					location.href='index.php?act=my&op=renpayment';				}			}		});		}
				
	});
	
});
</script>
<?php include template('home/nav');?>
</body>
</html>